<!--
 * @Author: lmh
 * @Date: 2021-09-12 22:16:40
 * @LastEditTime: 2021-09-13 00:21:50
 * @LastEditors: lmh
 * @Description: 
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="root">
      <div class="tt1" title="sss0">测试1</div>
      <div title="sss1">{{ name }}</div>
      <div title="sss2">{{ age }}</div>
      <div title="sss3">{{ gender }}</div>
      <ul>
        <li>排1</li>
        <li>排5</li>
        <li>排3</li>
        <li>排4</li>
        <li>排2</li>
      </ul>
    </div>
    <script src="./src/watcher.js"></script>
    <script src="./src/Dep.js"></script>
    <script src="./src/vnode.js"></script>
    <script src="./src/compiler.js"></script>
    <script src="./src/jgvue.js"></script>
    <script src="./src/initrender.js"></script>
    <script src="./src/initdata.js"></script>
    <script>
      let app = new JGVue({
        el: "#root",
        data: {
          name: "张三",
          age: 40,
          gender: "男",
          children: [
            { name: "张三九", age: 9, gender: "男" },
            { name: "张一三", age: 9, gender: "女" },
            { name: "张四六", age: 9, gender: "男" },
          ],
          a: {
            b: {
              c: "jim",
            },
          },
        },
        computed: {
          // 计算属性 watcher 实现
        },
        watch: {
          // 使用 watcher 实现
        },
      });
    </script>
  </body>
</html>
